package com.itheima.domain.strategy.repository;

import com.itheima.domain.strategy.model.entity.StrategyAwardEntity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author Fuzhengwei bugstack.cn @小傅哥
 * @description 策略服务仓储接口（Repository Interface）：定义数据访问契约
 * @create 2023-12-23 09:33
 */
public interface IStrategyRepository {

    //查询策略配置
    List<StrategyAwardEntity> queryStrategyAwardList(Long strategyId);

    //存放到 Redis
    void storeStrategyAwardSearchRateTable(Long strategyId, Integer rateRange, Map<Integer, Integer> strategyAwardSearchRateTable);

    Integer getStrategyAwardAssemble(Long strategyId, Integer rateKey);

    int getRateRange(Long strategyId);

}
